* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'SourceHanSansCN-Normal', 'Microsoft Yahei', Arial, Helvetica, sans-serif;
}
html {
  --text-color: #000;
}
html,
body {
  background-color: #ffffff;
  color: var(--text-color);
}

/* Remove List Styles */
ul,
ol {
  list-style: none;
}
* {
  outline: none !important;
}
/* Remove Default Margin and Padding */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
code,
figure,
form,
fieldset,
legend,
input,
textarea,
select,
option,
optgroup,
hr {
  margin: 0;
  padding: 0;
}
ul,
li,
dl,
dt,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
form,
p {
  padding: 0;
  margin: 0;
}
:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

.card {
  padding: 2em;
}

#app {
  height: 100vh;
  flex: 1;
  margin: 0 auto;
  text-align: center;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}

.table-title {
  text-align: left;
  line-height: 24px;
  padding: 12px;
  background-color: rgb(51.2, 126.4, 204);
  color: #fff;
}
.table-header-row {
  background-color: rgb(121.3, 187.1, 255) !important;
  color: #fff;
}
.table-cells {
  .table-title {
    text-align: left;
    line-height: 24px;
    padding: 12px;
    background-color: rgb(51.2, 126.4, 204);
    color: #fff;
  }
  .table-header-row {
    background-color: rgb(121.3, 187.1, 255) !important;
    color: #fff;
  }
  &.warning {
    .table-title {
      background-color: rgb(184, 129.6, 48);
    }
    .table-header-row {
      background-color: rgb(237.5, 189.9, 118.5) !important;
    }
  }
  &.danger {
    .table-title {
      background-color: rgb(196, 86.4, 86.4);
    }
    .table-header-row {
      background-color: rgb(248, 152.1, 152.1) !important;
    }
  }
}

.remark-content {
  white-space: pre-line;
}
.report-table {
  width: 100%;
  border-collapse: collapse;
  tr {
    td,
    th {
      text-align: left;
      padding: 4px 12px;
      border: 1px solid var(--el-border-color);
      &.empty {
        border: 0;
      }
    }
  }
}

.el-table__header-wrapper {
  .table-header-cell {
    writing-mode: vertical-lr;
    // line-height: 1;
  }
}
.el-table__footer-wrapper tfoot td:first-child {
  z-index: 99 !important;
  padding: 0;
  .cell {
    height: 40px;
    position: relative;
    overflow: visible;
  }
  .total-headcount {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    text-align: center;
    background-color: var(--el-table-row-hover-bg-color);
    height: auto;
    padding: 8px 0;
  }
}
/* fade-transform */
.fade-transform--move,
.fade-transform-enter-active,
.fade-transform-leave-active {
  transition: all 0.5s;
}

.fade-transform-leave-active {
  position: absolute;
}

.fade-transform-enter-from,
.fade-transform-enter {
  opacity: 0;
  transform: translateX(-30px);
}

.fade-transform-leave-to {
  opacity: 0;
  transform: translateX(30px);
}

// 星期
.week6,
.week0 {
  background-color: #e6a23c !important;
}

.calender-week-0,
.calender-week-6 {
  color: var(--el-color-danger);
}
.lagal-type-1 {
  color: var(--el-color-success-dark-2);
}
.calender-week-0.lagal-type-2,
.calender-week-6.lagal-type-2 {
  color: var(--el-color-text-light-2);
}
.prev,
.next {
  .calender-week-0,
  .calender-week-6 {
    color: var(--el-color-danger-light-5);
  }
  .calender-week-0.lagal-type-2 {
    color: var(--el-color-text-light-2);
  }
  .calender-week-6.lagal-type-1 {
    color: var(--el-color-success-light-5);
  }
}
.is-today {
  // color: var(--el-color-success) !important;
  // background-color: var(--el-color-success-light-9) !important;
}
.is-selected {
}
.approval-process-steps-item {
  .item-tag {
    font-size: 14px;
  }
}
html {
  &.dark {
    --text-color: #f0f;
  }
}

// Date Picker
.leave-date-picker-cell-weekend {
  background-color: var(--el-color-danger-light-9);
}
.leave-date-picker-cell-weekend-x {
  background-color: var(--el-color-success-dark-2);
}
.leave-date-picker-cell-weekend-b {
  background-color: var(--el-color-primary-light-9);
}

// calendar-warp
.calendar-warp {
  display: flex;
  flex-direction: column;
  .el-calendar__body {
    flex: 1;
    padding-bottom: 10px;
    .el-calendar-day {
      height: 100%;
      .day {
        position: relative;
        display: flex;
        flex-direction: column;
        .div-1 {
          font-size: 28px;
          text-align: left;
        }
        .div-2 {
        }
      }
    }
    .el-calendar-table {
      height: 100%;
      th {
        height: 20px !important;
      }
    }
  }
}
.el-table {
  .warning-row {
    --el-table-tr-bg-color: var(--el-color-warning-light-9);
  }
  .danger-row {
    --el-table-tr-bg-color: var(--el-color-danger-light-9);
  }
  .is-same-week {
    background-color: var(--el-color-warning) !important;
  }
}

.project-statistics {
  .calendar-warp {
    .el-calendar__body {
      // padding: 0 !important;
      .el-calendar-table th {
      }
    }
  }
}

.el-table__cell {
  &.warning {
    background-color: var(--el-color-warning-light-5) !important;
    // &:hover {
    //   background-color: var(--el-color-warning-light-7) !important;
    // }
    cursor: pointer;
  }
  &.success {
    background-color: var(--el-color-success-light-5) !important;
    // &:hover {
    //   background-color: var(--el-color-success-light-7) !important;
    // }
    cursor: pointer;
  }
  &.danger {
    background-color: var(--el-color-danger-light-5) !important;
    // &:hover {
    //   background-color: var(--el-color-danger-light-7) !important;
    // }
    cursor: pointer;
  }
  &.primary {
    background-color: var(--el-color-primary-light-5) !important;
    // &:hover {
    //   background-color: var(--el-color-primary-light-7) !important;
    // }
    cursor: pointer;
  }
}

.total-project-progress {
  .el-progress-bar__inner {
    text-align: left !important;
  }
}

.project-statistics {
  .el-form-item {
    margin-bottom: 0;
  }
}
.no-resize textarea {
  resize: none;
}